package com.thirteenClassicsServer.designPattern.策略工厂_模板方法.handler;

import org.springframework.stereotype.Component;

import com.thirteenClassics.dto.EntryCatalogQueryDTO;
import com.thirteenClassics.exception.BaseException;
import com.thirteenClassicsServer.designPattern.策略工厂_模板方法.Factory;

import lombok.extern.slf4j.Slf4j;

/**
 * @author wangzihao10 <wangzihao@kuaishou.com>
 * Created on 2024-08-03
 */
@Slf4j
@Component
public class TwoEntryHandler extends AbstractHandler {

    @Override
    public void excute(String name) {
        log.info("双语录入{}", name);
    }

    public void entryAll(EntryCatalogQueryDTO entryCatalogQueryDTO){
        throw new BaseException("支持");
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        Factory.register("双语录入", this);
    }
}
